<form method="post" name="frm_SelStation" onSubmit="return false;" action="{if $RstNull == '1'}{$apm.baseurl}search/{$form_act}{else}{$apm.baseurl}rstobi/rstobi{/if}" >
<div class="mt10 mb10">
	<p>{if $block_text}{$block_text}<br />{/if}
	{if not $SelFlag == 1}<span class="color02">※10ヵ所まで選択できます。</span>{/if}</p>
</div>

<div id="select_area02">
	<ul>
	{foreach from=$Mapping item=v name="ensenLoop"}
		<li><a href="#area{$smarty.foreach.ensenLoop.iteration}">{$v.ENSEN_NAME}</a></li>
	{/foreach}
	</ul>
</div>

{foreach from=$Mapping item=v name="ensenLoop"}
<div class="selectdetailbox" id="area1">
	<div class="mt15"><p class="name">{$v.ENSEN_NAME}</p></div>
</div>
<div  class="innerbox01">
	<div  class="innerbox02">
	{foreach from=$v.EKI_DATA item=eki name="ekiLoop"}
		{if $smarty.foreach.ekiLoop.iteration % 3 == 1}
		{if $smarty.foreach.ekiLoop.iteration+3 > $v.EKI_DATA|@count}<ul class="hr_none">
		{else}<ul>{/if}{/if}
{assign var="check" value=""}{* 再チェック判定 *}
{foreach from=$research_data.ReStCd key="key" item="retowncd" name="loopName"}
{if $restcd == $eki.EKI_CD}
{assign var="check" value="checked "}
{/if}
{/foreach}
			<li>
				<input name="StCd[]" type="{if $SelFlag == 1}radio{else}checkbox{/if}" id="selectCity{$eki.EKI_CD}" value="{$eki.EKI_CD}" {if $eki.REC_CNT == 0}disabled {/if}{$check}/>
				{if $eki.REC_CNT != 0}{if $eki.STATIC_URL == ""}<a href="javascript:SelEki_Link('{$eki.EKI_CD}');">{else}<a href="{$eki.STATIC_URL}">{/if}{$eki.EKI_NAME}{if $eki.REC_CNT>=0}（{$eki.REC_CNT}件）{/if}</a>
				{else}{$eki.EKI_NAME}{if $eki.REC_CNT>=0}（{$eki.REC_CNT}件）{/if}{/if}
			</li>
		{if $smarty.foreach.ekiLoop.iteration % 3 == 0 || $smarty.foreach.ekiLoop.last}</ul>{/if}
	{/foreach}
	</div>
</div>
{/foreach}

{if not $RstNull == "1"}
<div id="search_render" class="mt15">
<dl>
	<dt>検索結果表示：</dt>
	<dd>
		<ul>
			<li>
				<label><input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
				10件ずつ</label></li>
			<li>
				<label><input type="radio" name="dispCount" id="radio2" value="20" />
				20件ずつ</label></li>
			<li class="last">
				<label><input type="radio" name="dispCount" id="radio3" value="30" />
				30件ずつ</label></li>
		</ul>
	</dd>
</dl>
<p class="btn f_r">
	<input name="imageField" type="image" class="rollImg" id="imageField" src="/common_new/img/btn_search_l.gif" alt="検索" onmouseover="this.src='/common_new/img/btn_search_l_ov.gif'" onmouseout="this.src='/common_new/img/btn_search_l.gif'" onclick="javascript:SelEki();" />
</p>
</div>
{else}
<div id="btn_area">
	<p class="btn">
		<input name="imageField" type="image" class="rollImg" id="imageField" src="/common_new/img/btn_search_l.gif" alt="検索" onmouseover="this.src='/common_new/img/btn_search_l_ov.gif'" onmouseout="this.src='/common_new/img/btn_search_l.gif'" onclick="javascript:SelEki();" />
	</p>
</div>
{/if}

<div id="hiddenval">
{$hiddenTag}
</div>
</form>
